﻿<navigation:Page xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"  x:Class="SilverlightMenu.QueryTask" 
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
                xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
                mc:Ignorable="d" 
                 xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
                xmlns:esriSymbols="clr-namespace:ESRI.ArcGIS.Client.Symbols;assembly=ESRI.ArcGIS.Client"
                xmlns:ESRI_ArcGIS_Client="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client"
                d:DesignWidth="640" d:DesignHeight="480"
                Title="地图综合查询应用页面">
    <Grid x:Name="LayoutRoot" 
          xmlns:convert="clr-namespace:SilverlightMenu;assembly=SilverlightMenu"
          >
        <Grid.Resources>
            <Style TargetType="TextBlock">
                <Setter  Property="Foreground" Value="#FF03ED53"></Setter>
                <Setter  Property="Effect">
                    <Setter.Value>
                        <DropShadowEffect ShadowDepth="0" Color="#FF09B0B6"/>
                    </Setter.Value>
                </Setter>
            </Style>
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition Height="25"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <ComboBox x:Name="sc"  Width="2" ItemsSource="{Binding Detalis}" />
        
        
        
        
        <sdk:DataPager Width="300" VerticalAlignment="Bottom"   NumericButtonCount="10"  PageSize="20"  x:Name="gataPager"   Source="{Binding Detalis}"/>

        <StackPanel Orientation="Horizontal" x:Name="FunSpace" HorizontalAlignment="Right">
            <TextBlock Text="输入" />
            <TextBlock  x:Name="CurrentField"  Text="{Binding ElementName=FieldNamesEnmu,Path=SelectedItem,Mode=TwoWay}" />
            <TextBlock Text="名称" />
            <TextBox x:Name="txt线路名称"  Width="192.834" Foreground="#FF858198" Text="{Binding ElementName=FieldContentEnmu,Path=SelectedItem}" TextWrapping="Wrap" BorderThickness="1" >
                <TextBox.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFDADFE3" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                    </LinearGradientBrush>
                </TextBox.Background>
            </TextBox>
            <TextBlock Text="字段名" />
            <ComboBox x:Name="FieldNamesEnmu"    SelectionChanged="FieldNamesEnmu_SelectionChanged" ItemsSource="{Binding FieldNames}" />
            <TextBlock Text="字段值" />
            <ComboBox x:Name="FieldContentEnmu"  ItemsSource="{Binding FieldContentEnmu}"  ></ComboBox>
            <Button  Content="确定" Width="30"  Click="Button_Click"/>
        </StackPanel>
        
        <ListBox  Width="600" x:Name="grid"  Visibility="Collapsed" SelectionChanged="grid_SelectionChanged" Margin="0,20,0,0">
        </ListBox>


        <StackPanel Grid.Row="0"   Orientation="Horizontal">
            <TextBlock TextWrapping="Wrap" Text="图层信息" />
            <ComboBox ItemsSource="{Binding LayerInofs}" SelectionChanged="ComboBox_SelectionChanged" SelectedIndex="0" >
                <ComboBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="[" />
                            <TextBlock Text="{Binding ID}" />
                            <TextBlock Text="]" />
                            <TextBlock Text="[" />
                            <TextBlock Text="{Binding Name}" />
                            <TextBlock Text="]" />
                            <TextBlock Text=" " />
                        </StackPanel>
                    </DataTemplate>
                </ComboBox.ItemTemplate>
                <ComboBox.Items>
                    <TextBlock Text="[请选择]" />
                </ComboBox.Items>
            </ComboBox>
            <HyperlinkButton >
                <TextBlock Text="显示报图区域" />
            </HyperlinkButton>
        </StackPanel>

        <ESRI_ArcGIS_Client:Map x:Name="MapControl" Grid.Row="1"  IsLogoVisible="false"   d:IsHidden="True" d:IsLocked="True">
            <ESRI_ArcGIS_Client:Map.Layers>
                <ESRI_ArcGIS_Client:ArcGISTiledMapServiceLayer ID="TiledMapServiceLayer" Url="http://192.168.58.91:4500/ArcGIS/rest/services/Bing/MapServer" />
                <ESRI_ArcGIS_Client:GraphicsLayer  ID="gLayer" />
                <ESRI_ArcGIS_Client:ElementLayer  ID="eLayer" />
            </ESRI_ArcGIS_Client:Map.Layers>
        </ESRI_ArcGIS_Client:Map>


    </Grid>
</navigation:Page>
